import Vue from 'vue'
import App from './App.vue'
import router from '@/router/index'
import store from '@/store'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
// 路由权限
import '@/permission'
Vue.config.productionTip = false
Vue.use(ElementUI);

Vue.directive('imgError', {
  inserted(el, bind) {
    el.onerror = function () {
      el.src = bind.value
    }
  }
})
new Vue({
  render: h => h(App),
  mounted() {
  },
  router,
  store
}).$mount('#app')
